#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>


int main()
{
	int a = 0, b = 0;
	while (scanf("%d %d", &a, &b) != EOF)
	{
		if (a < 120)
			printf("0\n");
		else if (a >= 460)
			printf("4\n");
		else
		{
			printf("")
		}
	}

	return 0;
}